//定义一个有依赖的模块
(function (window, dataService) {
    let name = 'Jerry';

    function showMsg() {
        console.log(dataService.getName() + ', ' + name);
    }

    window.alerter = {showMsg}
})(window, dataService);